<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="layui/css/layui.css" />
<script src="layui/layui.js"></script>
<script src="WebContent/src/layuiadmin/js/jquery-1.8.2.js"></script>
</head>
<body>
	<table id="demo" lay-filter="test"></table>
	<script>
layui.use('table', function(){
  var table = layui.table;
  
  //第一个实例
  table.render({
    elem: '#demo'
    ,height: 450
    ,url: 'ChaxunLianxiwomen' //数据接口
    ,page: true //开启分页
    ,cols: [[ //表头
      {field: 'id', title: '序号', width:80, sort: true, fixed: 'left'},
      {field: 'name', title: '姓名',width:180, sort: true, fixed: 'left'},
      {field: 'dianhua', title: '电话',width:280, sort: true, fixed: 'left'},
      {field: 'xvqiu', title: '需求',width:280, sort: true, fixed: 'left'}//这里的toolbar值是模板元素的选择器
    ]]
  });
 
});

	
</script>

</body>
</html>